package com.bjpowernode.servlet;

import jakarta.servlet.Servlet;
import jakarta.servlet.ServletConfig;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.ServletResponse;
import java.io.IOException;


public class HelloServlet implements Servlet {
    //5个方法
    public void init(ServletConfig config) throws ServletException {

    }

    public void service(ServletRequest request, ServletResponse response)
        throws ServletException, IOException{
        System.out.println("Hello Servlet!");

    }

    public void destroy() {

    }

    public String getServletInfo() {
        return "";
    }

    public ServletConfig getServletConfig() {
        return null;
    }


}
